package com.etc.drug.service;

import com.etc.common.utils.Result;
import com.etc.drug.entity.Drug;

import java.util.Date;

public interface DrugService {
    //根据处方Id查询药品出库信息
    Result queryByPId(String prescriptionId);
    //药品进货
    Result storage(String drugId, Integer drugPack, Date drugValidity,Integer storageNum,String operatorId);
    //药品出库
    Result outbound(String prescriptionId,String drugId,Date drugValidity, Integer outboundNum,String operatorId);

    Result queryDrugNum(Integer pageNum,Integer pageSize);

    Result retrieval(String outboundId, String operatorId);

    Result queryCategory(Integer pageNum,Integer pageSize);

    Result insert(Drug drug);

    Result update(Drug drug);
}
